package com.bmlstrategys
{
	import com.strategy.IBML;
	import com.utils.Utils;
	
	import flash.utils.ByteArray;
	
	public class FacePhotoInfo extends BMLBase implements IBML
	{
		public function FacePhotoInfo(data:ByteArray)
		{
			super(data);
		}
		
		public function bmlstrategyxml():XML
		{
			var num:int = Utils.readHead(bmlData);
			var index:int=0;
			var xmlData:XML = new XML();
			xmlData = <root/>;
			
			while(index<num)
			{
				xmlData.appendChild(<faces/>);
				xmlData.faces[index].@id = bmlData.readUnsignedInt();
				xmlData.faces[index].@sex =  bmlData.readUnsignedInt();
				xmlData.faces[index].@open = bmlData.readUnsignedInt();
				index++;
			}
			
			return xmlData;
		}
	}
}